/**
 * 
 */
package com.iss.card.model;

import java.io.Serializable;

import com.iss.card.webservice.BaseModel;

/**
 * @author dtdh
 *
 */
public class UserInfo extends BaseModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7486528667123533884L;
	private static final String UKEY_USR_ID = "userID";
	private static final String UKEY_USR_NAME = "userName";
	private static final String UKEY_USR_MOBILE = "userMobile";
	private static final String UKEY_USR_HEAD_ICON_URL = "userPic";
	
	private String mUsrId;
	private String mUsrMobile;
	private String mUsrName;
	private String mUsrHeadIconUrl;
	
	/**
	 * @return the mUsrId
	 */
	public synchronized final String getUsrId() {
		return mUsrId;
	}

	/**
	 * @param usrId the mUsrId to set
	 */
	public synchronized final void setUsrId(String usrId) {
		this.mUsrId = usrId;
	}

	/**
	 * @return the mUsrMobile
	 */
	public synchronized final String getUsrMobile() {
		return mUsrMobile;
	}

	/**
	 * @param usrMobile the mUsrMobile to set
	 */
	public synchronized final void setUsrMobile(String usrMobile) {
		this.mUsrMobile = usrMobile;
	}

	/**
	 * @return the mUsrName
	 */
	public synchronized final String getUsrName() {
		return mUsrName;
	}

	/**
	 * @param usrName the mUsrName to set
	 */
	public synchronized final void setUsrName(String usrName) {
		this.mUsrName = usrName;
	}

	/**
	 * @return the mUsrHeadIconUrl
	 */
	public synchronized final String getUsrHeadIconUrl() {
		return mUsrHeadIconUrl;
	}

	/**
	 * @param usrHeadIconUrl the mUsrHeadIconUrl to set
	 */
	public synchronized final void setUsrHeadIconUrl(String usrHeadIconUrl) {
		this.mUsrHeadIconUrl = usrHeadIconUrl;
	}

	/* (non-Javadoc)
	 * @see com.iss.card.webservice.BaseModel#addValues(java.lang.String, java.lang.String, com.iss.card.webservice.BaseModel)
	 */
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		if (null == tempString) {
			return;
		}
		if (tempString.equals(UKEY_USR_ID)) {
			this.mUsrId = valueString;
		} else if (tempString.equals(UKEY_USR_NAME)) {
			this.mUsrName = valueString;
		} else if (tempString.equals(UKEY_USR_MOBILE)) {
			this.mUsrMobile = valueString;
		} else if (tempString.equals(UKEY_USR_HEAD_ICON_URL)) {
			this.mUsrHeadIconUrl = valueString;
		}
		baseMode = this;
	}

}
